import './style.css'
import '../mock'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus' // 引入element-plus
import 'element-plus/dist/index.css' // 引入element-plus的样式
import SvgIcon from './components/SvgIcon/index.vue'
import 'virtual:svg-icons-register'
// 加载Iconfont
import '@/assets/iconfont/iconfont.css'
import '@/assets/iconfont/iconfont.js'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
app.use(router)
app.use(ElementPlus)
app.component('svg-icon', SvgIcon)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.mount('#app')
